package com.facebook.imagepipeline.animated.impl;

import com.facebook.imagepipeline.animated.util.AnimatedDrawableUtil;
import javax.annotation.concurrent.NotThreadSafe;

@NotThreadSafe
class WhatToKeepCachedArray
{
  private final boolean[] mData;

  WhatToKeepCachedArray(int paramInt)
  {
    this.mData = new boolean[paramInt];
  }

  boolean get(int paramInt)
  {
    return this.mData[paramInt];
  }

  void removeOutsideRange(int paramInt1, int paramInt2)
  {
    for (int i = 0; i < this.mData.length; i++)
      if (AnimatedDrawableUtil.isOutsideRange(paramInt1, paramInt2, i))
        this.mData[i] = false;
  }

  void set(int paramInt, boolean paramBoolean)
  {
    this.mData[paramInt] = paramBoolean;
  }

  void setAll(boolean paramBoolean)
  {
    for (int i = 0; i < this.mData.length; i++)
      this.mData[i] = paramBoolean;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imagepipeline.animated.impl.WhatToKeepCachedArray
 * JD-Core Version:    0.6.2
 */